﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace LCQ.QueryBuilder
{
    [StructLayout(LayoutKind.Sequential)]
    public struct JoinClause
    {
        public JoinType JoinType;
        public string FromTable;
        public string FromColumn;
        public Comparison ComparisonOperator;
        public string ToTable;
        public string ToColumn;
        public string Alias;
        public JoinClause(JoinType join, string toTableName, string toColumnName, string alise, Comparison @operator, string fromTableName, string fromColumnName)
        {
            this.JoinType = join;
            this.FromTable = fromTableName;
            this.FromColumn = fromColumnName;
            this.ComparisonOperator = @operator;
            this.ToTable = toTableName;
            this.ToColumn = toColumnName;
            this.Alias = alise;
        }
    }
}
